getFontMetrics

abstract suspend fun getFontMetrics(fontFileUri: String): FontMetrics

Returns the font metrics for a given font file URI. If the font is not yet loaded, it will be fetched asynchronously. The returned metrics are in the font's design units coordinate space.

Return

the font metrics.

Parameters

fontFileUri

the URI of the font file to get metrics from.